mixin animate(params) 
  -var {attr, val, dur, count} = params || {}
  -var vals = {attr: 'x', val: '0; 0', dur:'1s'}
  -var attrs = Object.assign(vals, {...params, attributeName: attr, values: val})
  if count
    -attrs.repeatCount = count
  // -console.log(attrs)
  animate&attributes(attrs)

  // x,y,width,height,r,opacity, fill, points
